package main

import (
	"context"
	"fmt"
	"google.golang.org/grpc"
	"sinery.net.goft/myproto"
)

func main() {
	conn, err := grpc.Dial("127.0.0.1:8080", grpc.WithInsecure())
	if err != nil {
		fmt.Println(err)
	}
	client := myproto.NewHelloServceClient(conn)
	argsSayHello := &myproto.ArgsSayHello{
		Name: "sin",
	}
	r, err := client.SayHello(context.Background(), argsSayHello)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(r.Res)
}
